<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="css/site.css" rel="stylesheet" type="text/css" />
		<title>流媒体视频管理平台-视频总览</title>
	</head>
	<body class="mainTopBg">
		<table
			style="height: 93px; text-align: center; margin: auto; width: 100%;">
			<tr>
				<td>
					<jsp:include page="top.jsp" flush="true"></jsp:include>

					<div class="mainHolder">
						<div
							style="text-align: left; width: 900px; font-size: 20px; padding-top: 15px; padding-left: 30px;">
							<div style="float: left">
								当前位置:信息检索->视频总览
							</div>
							<jsp:include page="searchBar.jsp"></jsp:include>
							<br>
						</div>
						<s:set name="allVideo" value="#request.allVideo" />
						<table id="mytable" border="0" width="670" cellspacing="0"
							cellpadding="5">
							<tr bgcolor="#FAFCF5">
								<td style="border: 1 solid">
									<table border="0" width="100%" cellspacing="0" cellpadding="0">
										<tr>
											<th>
												视频名称
											</th>
											<th>
												视频分类
											</th>
											<th>
												上传时间
											</th>
											<th>
												当前状态
											</th>
										</tr>
										<s:if test="#allVideo==null||#allVideo.size()==0">
											<tr height="30">
												<td colspan=4 align="center" style="border: 1 solid">
													暂无上传视频
												</td>
											</tr>
										</s:if>
										<s:else>
											<s:iterator status="videoStatus" value="allVideo">

												<%--如果当前行的状态为奇数，则添加TR标签
												<s:if test="#videoStatus.odd">
												</s:if>--%>
												<tr height="23">
												
													<td>
															<s:property value="name" /> 
													</td>
													<td>
														<s:property
															value="getCategoryName()" />
													</td>
													<td>
														<s:property value="getMyUploadTime()" />
													</td>
													<td>
													<s:property value="getStatuString()" /></td>
													<%--如果当前行的状态为偶数，则添加TR标签进行换行 --%>
													<s:if test="#videoStatus.even">
												</tr>
												</s:if>
											</s:iterator>
										</s:else>
									</table>
								</td>
							</tr>
						</table>
					</div>
				</td>
			</tr>
		</table>
	</body>
</html>
